<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<script type="text/javascript"
	src="${pageContext.request.contextPath }/resources/js/customer/videoFromWeb/list.js"></script>



<div class="page-header">
	<!--<shiro:hasPermission name="series:add">
	<button id="btnAdd" type="button" onclick="webside.common.addModel('/series/addUI.html')" class="btn btn-primary btn-sm">
	  	<i class="fa fa-user-plus"></i>&nbsp;添加
	</button>
	</shiro:hasPermission>-->
	<shiro:hasPermission name="series:edit">
		<button id="btnEdit" type="button"
			onclick="webside.common.editModel('/bvideoweb/editUI.html')"
			class="btn btn-success btn-sm">
			<i class="fa fa-pencil-square-o"></i>&nbsp;编辑
		</button>
	</shiro:hasPermission>
	<shiro:hasPermission name="series:deleteBatch">
		<button id="btnDel" type="button"
			onclick="webside.common.delModel('/bvideoweb/deleteBatch.html', customSearch)"
			class="btn btn-danger btn-sm">
			<i class="fa fa-trash-o"></i>&nbsp;删除
		</button>
	</shiro:hasPermission>
	<shiro:hasPermission name="series:online">
		<button id="btnOut" type="button"
			onclick="webside.common.editStatus('/bvideoweb/updateStatus.html', customSearch)"
			class="btn btn-info btn-sm">
			<i class="fa fa-gears"></i>&nbsp;上线
		</button>
	</shiro:hasPermission>
	<shiro:hasPermission name="series:offline">
		<button id="btnOn" type="button"
			onclick="webside.common.editStatus1('/bvideoweb/updateStatus1.html', customSearch)"
			class="btn btn-info btn-sm">
			<i class="fa fa-gears"></i>&nbsp;下线
		</button>
	</shiro:hasPermission>
	<shiro:hasPermission name="series:offline">
		<button id="btnBind" type="button"
			class="btn btn-info btn-sm">
			<i class="fa fa-gears"></i>&nbsp;绑定剧集
		</button>
	</shiro:hasPermission>
	<shiro:hasPermission name="series:unbind">
		<button id="btnUNBind" type="button"
			onclick="webside.common.unbindVideo('/bvideoweb/unbindVideo.html', customSearch)"
			class="btn btn-info btn-sm">
			<i class="fa fa-gears"></i>&nbsp;解除绑定剧集
		</button>
	</shiro:hasPermission>
	<!--
	 <shiro:hasPermission name="series:videoList">
	<button id="btnBvide" type="button" onclick="webside.common.editModel('/bvideo/listUI.html')" class="btn btn-info btn-sm">
		<i class="fa fa-gears"></i>&nbsp;视频列表
	</button>
	</shiro:hasPermission>
	<shiro:hasPermission name="series:editseo">
	<button id="btnBvide" type="button" onclick="webside.common.editModel('/series/editSeoUI.html')" class="btn btn-info btn-sm">
		<i class="fa fa-gears"></i>&nbsp;seo编辑
	</button>
	</shiro:hasPermission>
	<shiro:hasPermission name="series:online">
		<button id="btnDel" type="button"
			onclick="webside.common.editDispose('/dealseries/updateStatus.html', customSearch)"
			class="btn btn-info btn-sm">
			<i class="fa fa-gears"></i>&nbsp;处理
		</button>
	</shiro:hasPermission>
	<shiro:hasPermission name="series:offline">
	<button id="btnDel" type="button" onclick="webside.common.editStatus1('/series/updateStatus1.html', customSearch)" class="btn btn-info btn-sm">
		<i class="fa fa-gears"></i>&nbsp;下线
	</button>
	</shiro:hasPermission>-->


</div>

<div class="input-group">
	<div style="float: left; margin-right: 50px;">
		<label>标题:</label> <input id="titleKey" type="text" name="name"
			width="10px" placeholder="标题...">
	</div>
	<div style="float: left; margin-right: 50px;">
		<label>来源:</label> <input id="sourceKey" type="text" name="actor"
			placeholder="来源...">
	</div>
	<div style="float: left; margin-right: 50px;">
		<label>绑定状态:</label> 
		<select id="bindStatus" style="width:180px;">
			<option>请选择</option>
			<option>已绑定</option>
			<option>未绑定</option>	
		</select>
	</div>
	<div style="float: left;">
		<span class="input-group-btn">
			<button id="btnSearch" class="btn btn-primary btn-sm" type="button">
				<i class="fa fa-search"></i> 搜索
			</button>
		</span>
	</div>
	<div style="clear: both; height: 20px"></div>
</div>
<div class="row">
	<div class="col-xs-12 widget-container-col ui-sortable"
		style="min-height: 127px;">
		<!-- #section:custom/widget-box.options.transparent -->
		<div class="widget-box transparent ui-sortable-handle"
			style="opacity: 1; z-index: 0;">
			<div class="widget-header">
				<h4 class="widget-title lighter">预告片列表</h4>
				<div class="widget-toolbar no-border">
					<a href="#" data-action="fullscreen" class="orange2"> <i
						class="ace-icon fa fa-arrows-alt"></i>
					</a> <a href="#" data-action="collapse" class="green"> <i
						class="ace-icon fa fa-chevron-up"></i>
					</a>
				</div>
			</div>


			<div class="widget-body" style="display: block;">
				<div class="widget-main padding-6 no-padding-left no-padding-right">
					<input id="id" type="hidden" value="${id}"><input
						id="pageNum" type="hidden" value="${page.pageNum }"> <input
						id="pageSize" type="hidden" value="${page.pageSize }"> <input
						id="orderByColumn" type="hidden" value="${page.orderByColumn }">
					<input id="orderByType" type="hidden" value="${page.orderByType }">
					<div id="dtGridContainer" class="dlshouwen-grid-container"></div>
					<div id="dtGridToolBarContainer"
						class="dlshouwen-grid-toolbar-container"></div>
				</div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
	$("#btnBind").bind("click",function(){
		var rows = grid.getCheckedRecords();
		var idss=[];
		
		for (var i = 0; i < rows.length; i++) {
			idss.push(rows[i].id);
		}
		var ids=idss.join(',');
		if(rows.length>0){
			var resourceLayer = layer.open({
				type : 2,
				scrollbar : false,
				content : sys.rootPath + '/bvideoweb/resources.html?ids='+ids,
				area : [ '800px', '600px' ],
				maxmin : true,
				shift : 4,
				title : '选择资源'
			});
		}else{
			layer.msg("你没有选择行或选择了多行数据", {
				icon : 0
			});
		}
		
	});
	/* $("#btnUNBind").bind("click",function(){
		var rows = grid.getCheckedRecords();
		
		var ids=rows[0].id;
		if(rows.length>0 && rows.length<2){
			var resourceLayer = layer.open({
				type : 2,
				scrollbar : false,
				content : sys.rootPath + '/bvideoweb/unbindVideo.html?ids='+ids,
				area : [ '800px', '600px' ],
				maxmin : true,
				shift : 4,
				title : '选择资源'
			});
		}else{
			layer.msg("你没有选择行或选择了多行数据", {
				icon : 0
			});
		}
		
	}); */
</script>

